﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using MomoCMS.Domain.Models;
using MomoCMS.Domain;
using MomoCMS.Service;

namespace MomoCMS.Areas.Admin.Controllers
{
    public class DocumentController : Controller
    {
        public MomoCMS.Service.IDocumentService DocumentService { get; set; }
        public String Name { get; set; }
        //
        // GET: /Article/

        
        public ActionResult Index()
        {
            return View();
        }
        

        public ActionResult NewArticle() {
            return View();
        }

        [HttpPost]
        public ActionResult NewArticle(DocumentModel model) {
            if (ModelState.IsValid) {
                //this.documentService.Save(model);
            }
            return View();
        }

        public ActionResult List() {
            IList<Document> docs = this.DocumentService.GetAll();
            return View(docs);
        }

        public ActionResult Manage() {
            return View();
        }
    }
}
